import request from '@/utils/request';

//标签分页列表
export function queryPageList(params) {
	return request({
		method: 'get',
		url: '/tbSysLabel/query',
		params
	});
}

//新增标签
export function addedLabel(data) {
	return request({
		method: 'post',
		url: '/tbSysLabel/add',
		data
	});
}

//修改标签
export function updateLabel(data) {
	return request({
		method: 'post',
		url: '/tbSysLabel/update',
		data
	});
}

//删除标签
export function deleteLabel(id) {
	return request({
		method: 'get',
		url: '/tbSysLabel/delete/' + id
	});
}

//标签详情
export function labelDetail(id) {
	return request({
		method: 'get',
		url: '/tbSysLabel/query/' + id
	});
}

//标签列表
export function getLableList(params) {
	return request({
		method: 'get',
		url: '/tbSysLabel/queryData',
		params
	});
}